package com.ethink.warehouse.facade.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.ReportMateInventoryAgeFacade;
import com.ethink.warehouse.api.request.*;
import com.ethink.warehouse.api.response.*;
import com.ethink.warehouse.service.ReportMateInventoryAgeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 仓库库龄报表 Facade接口实现
 *
 * @author default
 * @date 2023-01-29
 */
@RestController
@Slf4j
@RequestMapping("warehouse-service/facade/v1/reportMateInventoryAge")
public class ReportMateInventoryAgeFacadeImpl implements ReportMateInventoryAgeFacade {

    @Autowired
    private ReportMateInventoryAgeService reportMateInventoryAgeService;

    @Override
    public Page<ReportMateInventoryAgeQueryResponse> queryReportMateInventoryAge(ReportMateInventoryAgeQueryRequest request) {
        return reportMateInventoryAgeService.queryReportMateInventoryAge(request);
    }

}